JAMS 6.x Help
Submitting a Job with Parameters

You can also specify parameter values and other attributes when submitting a job.  Here's an example of submitting a job including setting parameter and Job attributes.

Submitting a Job with Parameters
Copy Code
//
// Get a connection to our JAMS Server
// You will probably have to change the node name "localhost"
// to the name of your JAMS Server
//
JAMS.Server server = JAMS.Server.GetServer("localhost");
//
// Load the job that we want to submit
//
JAMS.Submit.Info si;
JAMS.Submit.Load(out si, "BackupDB", server, JAMS.Submit.Type.Job);
//
// Set the Parameters that the job needs
// We could also set batch queues, start times etc.
//
si.Parameters["DBNAME"].ParamValue = "MYDB";
si.Parameters["TARGET"].ParamValue = "DISK='C:\\BACKUPS\\MDB.BCK'";
//
// Increase the scheduling priority
//
si.SchedulingPriority += 5;
//
// Finish the submit
//
si.Submit();
See Also

 

 


Topic updated: 10/19/2015
Copyright © JAMS Software, LLC.
All Rights Reserved.
.